package com.huarui.part.dao.impl;

import java.util.List;
import java.util.Map;

import org.ewaf.framework.dao.impl.BaseDaoImpl;

import com.huarui.part.dao.IStandardPartDao;
import com.huarui.part.model.StandardPart;

public class StandardPartDao extends BaseDaoImpl implements IStandardPartDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<StandardPart> getAllStandardParts() {
		
		return this.getSqlMapClientTemplate().queryForList(namespace+".getAll");
	}

	@Override
	@SuppressWarnings("unchecked")
	public List<Map<String, Object>> getStandardPartListByComplex(
			Map<String, Object> paramsMap) {
		return this.getSqlMapClientTemplate().queryForList(super.namespace + ".getStandardPartListByComplex", paramsMap);
	}

	@Override
	public Integer getStandardPartListCountByComplex(
			Map<String, Object> paramsMap) {
		return (Integer) this.getSqlMapClientTemplate().queryForObject(super.namespace + ".getStandardPartListCountByComplex", paramsMap);
	}
	
	
	
	
}
